#include "Log.h"

Log::Log(int id, const string& log_type,const string& timestamp, int user_id,int device_id,const string& log_content){

    this->id = id;
    this->log_type = log_type;
    this->timestamp = timestamp;
    this->user_id = user_id;
    this->device_id = device_id;
    this->log_content = log_content;

}
    // 获取用户名
string Log::getLogType() const{
    return log_type;
}
string Log::getTimestamp() const{
    return timestamp;
}
int Log::getId() const{
    return id;
}
int Log::getUserId() const{
    return user_id;
}
int Log::getDeviceId() const{
    return device_id;
}
string Log::getLogContent() const{
    return log_content;
}